
package com.badlogic.androidgames.framework;

import com.badlogic.androidgames.framework.math.Vector2;

public class MyLine {
	
	public MyMovableImageTextBox tb1,tb2;
	public MyMovableLabel label;
		
    public Vector2 position;
    
    public float height, width;
    
    public boolean enabled;
    
    public boolean associated;    
    
    public MyLine(float x1, float y1, float x2, float y2) 
    {		
    	this.position = new Vector2((x1+x2)/2,(y1+y2)/2);
    	associated = false;
    }
    
    public void updateLabelPosition(float x1, float y1, float x2, float y2) 
    {
    	this.position.x = (x1+x2)/2;
    	this.position.y = (y1+y2)/2;
    	label.translateAt(position.x, position.y);
    }
}
